package com.wn.system.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * @author yellow Docter
 * @date 2023 -07-21
 * @desc
 */
@Configuration
public class PwdConfig {

    /**
     * 配置加密工具、放到ioc容器中
     */
    @Bean
    public PasswordEncoder passwordEncoder(){
        return new BCryptPasswordEncoder();
    }

}
